package org.domain.sigepac.Entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;


@Entity
@Table(name="tb_declaracao")
public class Declaracao extends EntidadeAbstrata {


	private static final long serialVersionUID = 4214599062707970032L;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

	@Column(name = "nome", nullable = false, length = 100)
	@NotNull
	@Length(max = 100)
	private String nome;


	@Column(name="modelo",nullable=false,length=5000)
	@NotNull
	@Length(max=5000)
	private String modelo;

	@Column(name="fl_portaria",nullable=false)
	private boolean portaria;

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public Serializable getId() {
		// TODO Auto-generated method stub
		return id;
	}

	public String getModelo() {
		return modelo;
	}
	public void setModelo(String modelo) {
		this.modelo = modelo;
	}

	public boolean isPortaria() {
		return portaria;
	}
	public void setPortaria(boolean portaria) {
		this.portaria = portaria;
	}
}
